﻿package com.game.module.heroBuff
{
	import com.game.data.constant.ConfigConst;
	
	import config.Config;
	
	import flash.display.Sprite;
	import flash.text.*;
	
	public class HeroBuff extends Sprite
	{
		
		public static var HPUPBUFF:String = "hpupbuff";
		
		public function HeroBuff()
		{
			this.currentBuffEffectArray = [];
			super();
			this.gc = Config.getIns();
			this.ttf = new TextFormat();
			this.ttf.size = 20;
			this.ttf.color = 16711680;
			this.ttf.font = ConfigConst.GAME_CONFIG_FONT;
		}
		
		private var gc:Config;
		private var currentBuffEffectArray:Array;
		private var ttf:TextFormat;
		
		public function step():void
		{
			var _loc1_:*;
			for each (_loc1_ in this.gc.heroBuffArray)
			{
				if (_loc1_.count > 0)
				{
					--_loc1_.count;
				}
			}
		}
		
		public function addBuff(param1:int):void
		{
			if (this.currentBuffEffectArray.indexOf(param1) == -1)
			{
				this.currentBuffEffectArray.push(param1);
			}
		}
		
		public function removeBuff(param1:int):void
		{
		}
	}
}
